
$btn-color-primary-light-1: $color-primary-light-9 !default;

.btn {
  display: inline-block;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  padding: 5px 12px;
  line-height: 24px;
  border-radius: 2px;
  border: none;
  outline: none;
  cursor: pointer;
  color: $text-color-primary;
  // min-width: 60px;

  &:active {
    opacity: 0.85;
  }

  &:disabled {
    cursor: not-allowed;
  }
}

.btn-text {
  outline: none;
  border: none;
  background-color: transparent;

  &:hover {
    background-color: transparent;
    border-color: transparent;
    @include fontColor();
  }

  &:focus,
  &:hover {
    border-color: transparent !important;
    background-color: transparent !important;
  }
}

.btn-primary {
  color: #fff;
  @include backgroundColor();
  
  &:hover {
    color: #fff;
    background-color: $color-primary-light-9 !important;
  }
  
  &:disabled {
    color: #fff;
    //background: #33bdac;
    background-color: $color-primary-light-9 !important;
    opacity: 0.65 !important;
  }
}

.btn-back {
  display: inline-block;
  padding: 7px 15px;
  color: #333;
}

// 背景白色按钮
.btn-ghost {
  background-color: #fff;
  color: $text-color-primary;
  border: 1px solid #e2e2e2;
  border-radius: 2px;
  padding: 4px 15px;

  &:hover {
    background-color: $btn-color-primary-light-1;
    border-color: $btn-color-primary-light-1;
    color: #fff;
  }
}

//返回按钮
.setting-btn-default {
  background-color: #f4f4f4;
  color: #333;
  border-color: #adadad;

  &:hover {
    background-color: #e7e7e7;
  }
}

.setting-btn-primary {
  color: #fff !important;
  @include backgroundColorImportant();

  &:hover {
    color: #fff;
    background-color: $color-primary-light-9 !important;
  }

  &:disabled {
    color: #fff;
    //background: #33bdac;
    background-color: $color-primary-light-9 !important;
    opacity: 0.65 !important;
  }
}

.base-btn {
  margin: 0;
  padding: 9px 8px;
  font-size: 14px;
  height: 32px;
  display: inline-block;
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
  border-radius: 2px;
  border: none;
  outline: none;
  cursor: pointer;
  background: none;
  line-height: 1em;

  &:disabled {
    cursor: not-allowed;
  }

  &.base-btn--round {
    border-radius: 4px;
  }

  &.base-btn--icon {
    padding: 0;
    width: 16px;
    height: 16px;
    line-height: 16px;
    font-size: 12px;
    border-radius: 2px;

    i {
      font-size: 12px;
    }

    &:hover {
      background: #e8e8e8;
    }
  }

  &.base-btn--circle {
    border-radius: 50%;
  }
}
